[mirrors]
http://switch.dl.sourceforge.net/project/dosbox/dosbox/0.74/dosbox-0.74.tar.gz

[main]
filesize=1265711
sha512=4a6ff4c658997a495119d200ec6ad37649da940814a4b14fca0dd29a99142026e324695b7aa9d2946efc2abf9067a819d911e43778efe905ed10ddf9b9f2dd3d

[deps.host]
dynamic-toolchain

[deps]
sdl
alsa-lib
zlib
libpng

[build]
patch -p1 < "$K"/dosbox.patch
patch -p1 < "$K"/dosbox-gcc47.patch
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"
CPPFLAGS=-D_GNU_SOURCE CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" $xconfflags \
  --disable-opengl
make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install
